import Vue from "vue";
import Vuex from  "vuex"
import actions from "./actions"
import mutations from "./mutations";
import getters from "./getters";

Vue.use(Vuex);

const state = {
    isChooseAll: false,
    shopCarGoods: [
        {
            iid: "1m70y5k",
            image: "//s3.mogucdn.com/mlcdn/c45406/180808_0ef92c2hkg8e57lkj8098ek8ikj32_750x1024.jpg",
            name: "艾芳女装屋",
            price: "59.00",
            quantity: 1,
            title: "2018秋季新款韩版百搭格子长袖衬衫+前短后长针织气质开衫外套+高腰直筒九分牛仔裤三件套装",
            isChecked: false
        },
        {
            iid: "1m745k0",
            image: "//s5.mogucdn.com/mlcdn/c45406/180811_259afdl5eb0aj4jl39h7gekgdi0lj_751x1011.jpg",
            name: "倩雪香宜定制女装",
            price: "68.00",
            quantity: 1,
            title: "2018秋季新款韩版女装字母印花宽松连帽休闲卫衣搭配松紧腰九分牛仔裤两件套女时尚运动套装潮",
            isChecked: false
        },
        {
            iid: "1lrzvr8",
            image: "//s11.mogucdn.com/mlcdn/c45406/180301_1f0g42ghie3gdf1e95edkgkagi7ib_790x1082.jpg",
            name: "hw旗舰店",
            price: "49.00",
            quantity: 1,
            title: "【2件69元】【新品特惠】短袖t恤女2018夏装新款韩版学生宽松黑色体恤圆领纯棉半袖上衣服",
            isChecked: false
        }
    ]
}

const store = new Vuex.Store({
    state,
    actions,
    mutations,
    getters
})

export default store;